#include "Timer.h"

PF::Timer::Timer()
	: m_uiStartTime(SDL_GetTicks())
{
}

float PF::Timer::GetElapsedTime()
{
	Uint32 uiEndTime = SDL_GetTicks();
	return (uiEndTime - m_uiStartTime) / 1000.0f;
}

void PF::Timer::Reset()
{
	m_uiStartTime = SDL_GetTicks();
}
